package com.shell.governor.authorization.dao;

import com.shell.bee.persistence.mapper.BaseMapper;
import com.shell.governor.authorization.po.PubResource;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public abstract interface PubResourceDao extends BaseMapper<PubResource> {
	public abstract List<PubResource> selectResourceTree(PubResource paramPubResource);

	public abstract int updateResourceStateWithCascade(@Param("resId") String paramString1,
			@Param("resState") String paramString2);

	public abstract int deleteResourceWithCascade(@Param("resId") String paramString);

	public abstract List<PubResource> selectResourceTree4Role(@Param("roleId") String paramString1,
			@Param("trmlCode") String paramString2);

	public abstract List<PubResource> selectResourceTree4User(@Param("roleIds") String[] paramArrayOfString,
			@Param("userId") String paramString1, @Param("entId") String paramString2,
			@Param("appId") String paramString3, @Param("trmlCode") String paramString4);

	public abstract List<PubResource> selectAllResource4User(@Param("userId") String paramString1,
			@Param("entId") String paramString2, @Param("trmlCode") String paramString3,
			@Param("appId") String paramString4);

	public abstract List<PubResource> selectRoleResourceTree(@Param("appId") String paramString1,
			@Param("userId") String paramString2, @Param("roleId") String paramString3,
			@Param("type") String paramString4);

	public abstract List<PubResource> selectResouceTreeByApp(@Param("appId") String paramString1,
			@Param("roleId") String paramString2, @Param("authedRoleId") String paramString3,
			@Param("type") String paramString4, @Param("trmlCode") String paramString5);

	public abstract List<PubResource> selectResouceTreeBizByApp(@Param("appId") String paramString1,
			@Param("bizId") String paramString2, @Param("roleId") String paramString3,
			@Param("authedRoleId") String paramString4, @Param("type") String paramString5,
			@Param("trmlCode") String paramString6);
}
